package com.pet.server.bo.common;

import java.util.List;

import com.pet.framework.page.Page;
import com.pet.server.dao.common.UserDao;
import com.pet.server.po.AnswerInfo;
import com.pet.server.po.Article;
import com.pet.server.po.Option;
import com.pet.server.po.RequestInfo;
import com.pet.server.po.UserArticle;
import com.pet.server.po.UserInfo;
import com.pet.server.po.UserTask;
import com.pet.server.po.UserTaskDaily;

public class UserService extends CommonService {
	private UserDao userDao;
	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	public void searchUserInfo(Page page,UserInfo user){
		userDao.searchUserInfo(page, user);
	}
	public void searchPetInfo(Page page){
		userDao.searchPetInfo(page);
	}
	/**
	 * 文件收藏
	 * @param page
	 * @param userArticle
	 */
	public void searchUserArticle(Page page, UserArticle userArticle) {
		userDao.searchUserArticle(page, userArticle);
	}
	/**
	 * 用户提问
	 * @param page
	 * @param requestInfo
	 */
	public void searchRequestInfo(Page page, RequestInfo requestInfo) {
		userDao.searchRequestInfo(page, requestInfo);
		
	}
	/**
	 * 用户AnswerInfo
	 * @param id
	 * @return
	 */
	public List<AnswerInfo> queryeAnswerInfo(Integer id) {
		return userDao.queryeAnswerInfo(id);
		
	}
	/**
	 * 用户Option
	 * @param page
	 * @param requestInfo
	 */
	public List<Option> queryeOption(Integer id) {
		return userDao.queryeOption(id);
		
	}
	/**
	 * 用户 常规任务
	 * @param page
	 * @param userTask
	 */
	public void searchUserTask(Page page, UserTask userTask) {
		userDao.searchUserTask(page, userTask);
	}

	/**
	 * 用户 每天任务
	 * @param page
	 * @param userTaskDaily
	 */
	public void searchUserTaskDaily(Page page, UserTaskDaily userTaskDaily) {
		userDao.searchUserTaskDaily(page, userTaskDaily);
	}
	
}
